package com.zz.ecommerce.utils;


import org.apache.commons.lang3.StringUtils;

/**
 * <一句话功能描述>
 * <功能详细描述>
 *
 * @author STEVEN
 * @date 2015/9/13,9:33
 */
public class SqlUtil {

    public static String split(String param) {
        if (StringUtils.isEmpty(param)) {
            return "''";
        }

        StringBuilder sql = new StringBuilder();

        for (String pa : param.split(",")) {
            sql.append("'").append(pa).append("',");
        }

        return sql.substring(0, sql.length() - 1);
    }
}
